/**
 * Copyright (C), 2015-2024, XXX有限公司
 * FileName: BinaryTree
 * Author:   Administrator
 * Date:     2024/3/24 18:15
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author Administrator
 * @create 2024/3/24
 * @since 1.0.0
 */
public class BinaryTree<T> {

    //定义一个根节点
    Node<T> root;


    public void createTree(T rootDataoot){
        root = new Node<T>(rootDataoot);

        Node<T> leftNode = new Node<T>(null);
        Node<T> rightNode = new Node<T>(null);
        root.left = leftNode;
        root.right = rightNode;
    }



    //定义节点类
    private class Node<T> {
        T data;

        Node<T> left;

        Node<T> right;

        public Node(T data) {
            this.data = data;
        }
    }
}